package com.oig.sys.auth.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.io.Serializable;


/**
 * @author wuxl
 * 查询方案
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_resource_qltmp")
public class TbResourceQltmp implements Serializable {

	/**
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;

	/**
	 */
	@Column(name = "resource_id")
	private Integer resourceId;

	/**
	 */
	@Column(name = "query_name", length = 128)
	private String queryName;

	/**
	 * =0为系统预设
	 */
	@Column(name = "user_id")
	private Integer userId;

	/**
	 */
	@Column(name = "query_json")
	private String queryJson;

	/**
	 */
	@Column(name = "status")
	private String status;

	/**
	 */
	@Version
	@Column(name = "version")
	private Integer version;
}
